package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;

/**
 * @author lfh
 * @version 1.0
 * @date 2021/5/1 19:52
 */
public interface AlipayService {

    /**
     * 支付
     * @param orderId
     * @return
     */
    String createaliPay(Long orderId) throws AlipayApiException;

    /**
     * 退款
     * @param orderId
     * @return
     */
    boolean refund(Long orderId);

    /**
     * 关闭支付宝交易
     * @param orderId
     * @return
     */
    boolean closePay(Long orderId);

    /**
     * 查询是否有交易记录
     * @param orderId
     * @return
     */
    boolean checkPayment(Long orderId);
}
